package com.example.moshudriver.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.BeeFramework.activity.BaseActivity;
import com.sgr.dykdriver.R;
import com.example.moshudriver.tools.O2OMobile;
import com.external.imagezoom.ImageViewTouch;
import com.nostra13.universalimageloader.core.ImageLoader;

//拍照跳转界面
public class AvatarDetailActivity extends BaseActivity {
	private ImageView mBack;
	private TextView mTitle;
	private ImageViewTouch mAvartar;
	public static final String AVATAR_URL = "avatar_url";

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		setContentView(R.layout.photo_detail);
		super.onCreate(savedInstanceState);
		String url = getIntent().getStringExtra(AVATAR_URL);
		mTitle = (TextView) findViewById(R.id.top_view_title);
		mTitle.setText(getString(R.string.detail));
		mBack = (ImageView) findViewById(R.id.top_view_back);
		mBack.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				finish();
			}
		});
		mAvartar = (ImageViewTouch) findViewById(R.id.photo_detail_bigImage);
		if (url != null && !"".equals(url)) {
			ImageLoader.getInstance().displayImage(url, mAvartar,
					O2OMobile.options);
		}
	}
}
